package cn.melonlib.graphql.model.metadata;

import cn.melonlib.graphql.annos.GraphqlField;
import lombok.Data;

import java.util.List;

/**
 * Graphql类型定义超类
 */
@Data
public class GraphqlTypeSuper {

    public GraphqlTypeSuper(String name, String comment, List<GraphqlFieldBean> fields) {
        this.name = name;
        this.comment = comment;
        this.fields = fields;
    }

    @GraphqlField(comment = "类型名称")
    private String name;

    @GraphqlField(comment = "类型注释")
    private String comment;

    @GraphqlField(comment = "类型字段")
    private List<GraphqlFieldBean> fields;
}
